<?php


namespace XinYaTable\Forms\Services;


use XinYaTable\Forms\Repositories\FormRepository;

class FormService extends BaseService {
    /**
     * @var FormRepository
     */
    private $_formRepository;
    
    public function __construct(FormRepository $formRepository) {
        parent::__construct();
        $this->_formRepository = $formRepository;
    }
    
    /**
     * @param int $id
     *
     * @return mixed
     */
    public function getForm($tableName) {
        return $this->_formRepository->getFormByTableName($tableName);
    }
    
}